package models

import "github.com/astaxie/beego/orm"

type User struct {
	Id        int
	UserName  string        `ht:"list;search;name(用户名)"  valid:"Required;"`
	NickName  string        `ht:"list;search;name(姓名)"  valid:"Required;"`
	PassWord  string        `ht:"hide;name(密码)"`
	UserType  int           `ht:"list;name(用户类型);subclass([{\"Num\":0,\"Name\":\"个人\"},{\"Num\":1,\"Name\":\"企业\"},{\"Num\":10,\"Name\":\"管理员\"}])"`
	CreatTime string        `ht:"name(创建时间)"`
}

func init() {
	orm.RegisterModel(new(User))
}
func (*User)TableName() string {
	return "user"
}

func (*User) FN_Id() string {
	return "Id"
}
func (*User) FN_UserName() string {
	return "UserName"
}
func (*User) FN_NickName() string {
	return "NickName"
}
func (*User) FN_PassWord() string {
	return "PassWord"
}
func (*User) FN_UserType() string {
	return "UserType"
}
func (*User) FN_CreatTime() string {
	return "CreatTime"
}